<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AdminLogin.aspx.cs" Inherits="Admin_Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Pharmacy Inventory | Sign In</title>
    <!--                       CSS                       -->
    <!-- Reset Stylesheet -->
    <link rel="stylesheet" href="media/css/reset.css" type="text/css" media="screen" />
    <!-- Main Stylesheet -->
    <link rel="stylesheet" href="media/css/style.css" type="text/css" media="screen" />
    <!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
    <link rel="stylesheet" href="media/css/invalid.css" type="text/css" media="screen" />
    <!-- Colour Schemes
	  
		Default colour scheme is green. Uncomment prefered stylesheet to use it.
		
		<link rel="stylesheet" href="Admin/resources/css/blue.css" type="text/css" media="screen" />
		
		<link rel="stylesheet" href="Admin/resources/css/red.css" type="text/css" media="screen" />  
	 
		-->
    <!-- Internet Explorer Fixes Stylesheet -->
    <!--[if lte IE 7]>
			<link rel="stylesheet" href="Admin/resources/css/ie.css" type="text/css" media="screen" />
		<![endif]-->
    <!--                       Javascripts                       -->
    <!-- jQuery -->

    <script type="text/javascript" src="media/scripts/jquery-1.4.2.min.js"></script>

    <!-- jQuery Configuration -->

    <script type="text/javascript" src="media/scripts/simpla.jquery.configuration.js"></script>

    <!-- Facebox jQuery Plugin -->

    <script type="text/javascript" src="media/scripts/facebox.js"></script>

    <!-- jQuery WYSIWYG Plugin -->

    <script type="text/javascript" src="media/scripts/jquery.wysiwyg.js"></script>
    <style type="text/css">
    .cboServer
    {
        float:right;
        width:211px;
    }
    </style>
</head>
<body id="login">
    <div id="login-wrapper" class="png_bg">
        <div id="login-top">
            <h1>
                Website Admin</h1>
            <!-- Logo (221px width) -->
            <img id="logo" src="media/images/logo.png" alt="Simpla Admin logo" />
        </div>
        <!-- End #logn-top -->
        <div id="login-content">
            <form runat="server">
            <div class="notification error png_bg" id="div_Error" runat="server" visible="false">
                <div>
                    Your username or password is invalid!</div>
            </div>
            <p>
                <label>
                    Username
                </label>
                &nbsp;<asp:TextBox runat="server" ID="tbl_Username" class="text-input" type="text" />&nbsp;<label><asp:RequiredFieldValidator
                    ID="rfv_Username" ControlToValidate="tbl_Username" runat="server" ErrorMessage="Required"></asp:RequiredFieldValidator></label>
            </p>
            <div class="clear">
            </div>
            <p>
                <label>
                    Password</label>
                <asp:TextBox runat="server" ID="tbl_Password" TextMode="Password" class="text-input"
                    type="password" />&nbsp;<asp:RequiredFieldValidator ID="rfv_Password" runat="server"
                        CssClass="validate" ErrorMessage="Required" ControlToValidate="tbl_Password"></asp:RequiredFieldValidator>
            </p>
            <div class="clear">
            </div>
            <p>
                <label>
                    Server</label>
                <asp:DropDownList runat="server" id="ddl_Server" DataTextField="Name" 
                    DataValueField="Name" DataSourceID="XmlDataSource1" CssClass="cboServer" />
                <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/Config.xml" 
                    XPath="Servers/Server"></asp:XmlDataSource>
            </p>
            <div class="clear">
            </div>
            <p>
                <asp:Button class="button" ID="btn_Submit" runat="server" Text="Sign In" OnClick="btn_Submit_Click" />
            </p>
            </form>
        </div>
        <!-- End #login-content -->
    </div>
    <!-- End #login-wrapper -->
</body>
</html>
